<?php

class RssPostImage
{
    const PATH_PATTERN = "/thumbnails/%d.png";

    private $postImageId = null;
    private $title = '';
    private $link = '';
    private $postId = null;
    private $image = null;

    public function GeneratePath()
    {
        return sprintf(self::PATH_PATTERN, $this->postImageId);
    }

    public function SetTitle( $title )
    {
        $this->title = $title;
    }

    public function GetTitle()
    {
        return $this->title;
    }

    public function SetLink( $link )
    {
        $this->link = $link;
    }

    public function GetLink()
    {
        return $this->link;
    }

    public function SetPostImageId( $postImageId )
    {
        $this->postImageId = $postImageId;
    }

    public function GetPostImageId()
    {
        return $this->postImageId;
    }

    public function SetPostId( $postId )
    {
        $this->postId = $postId;
    }

    public function GetPostId()
    {
        return $this->postId;
    }

    public function SetImage( $image )
    {
        $this->image = $image;
    }

    public function GetImage()
    {
        return $this->image;
    }
}

?>